home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ IIS Settings General.xpl < prev    next >
Text File  |  1998-08-08  |  2KB  |  73 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Internet\Internet Information Server"
  5. "NAME"="General Options"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Cache Security Information"
  8. "TEXT 2"="Log successful requests"
  9. "TEXT 3"="Log requests causing errors"
  10. "DESCRIPTION 1"="If "Cache Security Information" is activated, IIS will keep the security desriptors so checking permisson can be much faster than normal."
  11. "DESCRIPTION 2"="Activate "Log successful requests" if IIS should log successful requests (default: Deactivated)."
  12. "DESCRIPTION 3"="Activate "Log requests causing errors" if IIS should log requests that were aborted (default: Enabled)."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  16. "COMMENT 2"="Version 1.1"
  17.  
  18. 'Declaration of some constants
  19. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  20. sP2="HKLM\System\CurrentControlSet\Services\InetInfo\Parameters\"
  21. vCS="CacheSecurityDescriptor" 'DW
  22. vLS="LogSuccessfulRequests" 'DW
  23. vLE="LogErrorRequests" 'DW
  24.  
  25. 'Called when the Plugin is started
  26. Sub Plugin_Initialize
  27.  if RegPathExists(sP) then
  28.   i=RegReadValue(sp2&vcs)
  29.   if i=1 then SetUIElement 1,true
  30.  
  31.   i=RegReadValue(sp&vls)
  32.   if i=1 then SetUIElement 2,true
  33.  
  34.   i=RegReadValue(sp&vle)
  35.   if i=1 then SetUIElement 3,true
  36.  else
  37.   Disable
  38.  end if
  39. End Sub
  40.  
  41. 'Called when the Plugin should validate the Data the user has entered
  42. Sub Plugin_CheckData(ElementIndex)
  43. End Sub
  44.  
  45. 'Called when the Plugin should apply the changes
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  b=GetUIElement(1)
  48.  if b=true then
  49.   Call RegWriteValue(sp2&vcs,1,2)
  50.  else
  51.   Call RegWriteValue(sp2&vcs,0,2)
  52.  end if
  53.  
  54.  b=GetUIElement(2)
  55.  if b=true then
  56.   Call RegWriteValue(sp&vls,1,2)
  57.  else
  58.   Call RegWriteValue(sp&vls,0,2)
  59.  end if
  60.  
  61.  b=GetUIElement(3)
  62.  if b=true then
  63.   Call RegWriteValue(sp&vle,1,2)
  64.  else
  65.   Call RegWriteValue(sp&vle,0,2)
  66.  end if
  67.  
  68. End Sub
  69.  
  70. 'Called when the Plugin is about to be removed from memory
  71. Sub Plugin_Terminate
  72. End Sub
  73.